/**
 * Copyright © 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.xs_user_report.entity;

import com.jeeplus.modules.xs_user.entity.XsUser;
import com.jeeplus.modules.xs_book.entity.XsBook;
import com.jeeplus.modules.xs_novel_chapter.entity.XsNovelChapter;

import com.jeeplus.core.persistence.DataEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;
import lombok.Data;

/**
 * 用户举报信息Entity
 * @author 天竹子
 * @version 2021-07-15
 */
@Data
public class XsUserReport extends DataEntity<XsUserReport> {
	
	private static final long serialVersionUID = 1L;
	@ExcelField(title="用户id", fieldType=XsUser.class, value="user.nickname", align=2, sort=1)
	private XsUser user;		// 用户id
	@ExcelField(title="举报类型", align=2, sort=2)
	private String type;		// 举报类型
	@ExcelField(title="举报内容", align=2, sort=3)
	private String content;		// 举报内容
	@ExcelField(title="书籍名称", fieldType=XsBook.class, value="book.name", align=2, sort=4)
	private XsBook book;		// 书籍名称
	@ExcelField(title="章节名称", fieldType=XsNovelChapter.class, value="chapter.name", align=2, sort=5)
	private XsNovelChapter chapter;		// 章节名称
	
	public XsUserReport() {
		super();
		this.setIdType(IDTYPE_AUTO);
	}
	
	public XsUserReport(String id){
		super(id);
	}
}